import { TaskInterimTargetPageQuery, TaskTargetTypeResultVO } from './model/index';
import { defHttp } from '/@/utils/http/axios';
import { MOCK_API_URL } from '/@/settings/siteSetting';
import { ServicePrefixEnum } from '/@/enums/commonEnum';

/**
 * @description: Get sample list value
 */

export const AllList = (params: TaskInterimTargetPageQuery) =>
  defHttp.post<TaskTargetTypeResultVO>(
    {
      url: `${ServicePrefixEnum.FILE}/taskTarget/getYearTaskTargetOfTenant`,
      params,
      headers: {
        // @ts-ignore
        ignoreCancelToken: true,
      },
    },
    { apiUrl: MOCK_API_URL },
  );
